package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxRole;

public interface XxRoleMapper extends IBaseDao<XxRole>{
    int deleteByPrimaryKey(Long id);

    int insert(XxRole record);

    int insertSelective(XxRole record);

    XxRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XxRole record);

    int updateByPrimaryKey(XxRole record);
    
    /**
     * 根据用户id查询角色信息
     * @return
     */
    List<XxRole> selectRolesByAdminId(Long adminId);
    
    /**
     * 获取所有的角色信息
     * @return
     */
    List<XxRole> selectAllRoles();
}